<?php
error_reporting(0);
$dataname = $_POST['dataname'];
$datapwd = $_POST['datapwd'];
$host = $_POST['host'];
$conn = mysql_connect($host,$dataname,$datapwd);
if(!$conn) echo 0;
else echo 1;